package day04;

import java.util.ArrayList;

public class homework2 {
	public static void main(String[] args) {
		Manager manage=new Manager("王思聪",200);
		Member m1=new Member("老王1", 0);
		Member m2=new Member("老王2", 0);
		Member m3=new Member("老王3", 0);
		Member m4=new Member("老王4", 0);
		Member m5=new Member("老王5", 0);
		manage.show();
		m1.show();
		m2.show();
		m3.show();
		m4.show();
		m5.show();
		
		System.out.println("--------------");
		ArrayList<Integer> send = manage.send(50, 5);
		m1.receive(send);
		m2.receive(send);
		m3.receive(send);
		m4.receive(send);
		m5.receive(send);
		manage.show();
		m1.show();
		m2.show();
		m3.show();
		m4.show();
		m5.show();
	}
}



